﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sparrow.Reflection
{
    public class ClassMetadata : Sparrow.Reflection.MemberMetadata
    {
        //private Type type;

        public ClassMetadata(Type type)
        {
            this.Name = type.Name;

            this.Attributes = new List<AttributeMetadata>();
            foreach (var attr in type.GetCustomAttributes(false))
            {
                this.Attributes.Add(new AttributeMetadata { Attribute = attr});
            }

        }
    }
}
